import request from "@/utils/request";

const BASE_URL = "/api/v1";

const WxAPI = {
  /**
   * 获取二维码 /api/v1/wechat/getMerchantQRCode
   * @returns {*}
   */
  getSelfQRCodeApi() {
    return request({
      url: `${BASE_URL}/wechat/getMerchantQRCode`,
      method: "get",
    });
  },

  getAgreement(key: string) {
    return request({
      url: `/api/v1/agreement/selectByKey?key=${key}`,
      method: "get",
    });
  },
};

export default WxAPI;
